//
//  HROrdeDetailFoot.h
//  haierapp
//
//  Created by Xia Zhiyong on 14-8-28.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RTLabel.h"
#import "HROrderType.h"

@protocol HROrdeDetailFootDelegate <NSObject>

//申请退换货
-(void)returnsOrderProduct;

//再次购买
-(void)buyAgainOrderProduct;

//确认收货
-(void)receiveProducts;

//取消订单
-(void)cancelOrder;

//付款
-(void)paymentOrder;

@end

@interface HROrdeDetailFoot : UIView

@property(weak,nonatomic)id<HROrdeDetailFootDelegate>delegate;

@property (weak, nonatomic) IBOutlet RTLabel *lblPrice;
@property (weak, nonatomic) IBOutlet UIButton *btnAgain;
@property (weak, nonatomic) IBOutlet UIButton *btnReturn;
@property (weak, nonatomic) IBOutlet UIButton *btnSure;
@property (weak, nonatomic) IBOutlet UIButton *btnPay;
@property (weak, nonatomic) IBOutlet UIButton *btnCancel;


@property (weak, nonatomic) IBOutlet NSLayoutConstraint *payBtnWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *sureTrailingSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *againTrailingSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *returnTrailingSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *payTrailingSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *cancelTrailingSpace;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lblTrailingSpace;

//IBAction
- (IBAction)actionPay:(id)sender; //立即付款
- (IBAction)actionCancle:(id)sender; //取消订单
- (IBAction)actionTake:(id)sender; //确认收货
- (IBAction)actionBuyAgain:(id)sender; //再次购买
- (IBAction)returnGoods:(id)sender;   // 申请退换货


-(id)initWithFrame:(CGRect)frame orderType:(int)orderType;
-(void)showViewsWithType:(int)type;

-(void)showOrderAmount:(NSString*)orderAmount;
@end
